<template>
  <div>
    {{test}} {{title}} {{list}}
  </div>
</template>

<script>
import axios from '@@/utils/http'

export default {
  data() {
    return {
      id: ''
    }
  },
  computed: {
    title() {
      return this.$store.state.title
    },
    list() {
      return this.$store.state.list.array
    }
  },
  async asyncData({isDev, route, store, env, params, query, req, res, redirect, error}) {
    try{
      let result = await axios.get('http://123.207.32.32:9001/search/hot')
      return {
        test: result.code
      }
    } catch(e) {

    }
  },
}
</script>

<style lang='stylus' scoped>

</style>